The SJF scheduling method is used in the foreground queue, whereas FCFS is used in the background queue.
Here, the foreground queue has more precedence over the background queue.